﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fastyou.WCF.Contracts;
using System.ServiceModel;

namespace Fastyou.WCF.ServiceLib
{
    [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
    public class SessionMode :IInstanceMode
    {
        #region IInstanceMode Members
        int _reslut = 0;
        public void Release(int x)
        {
            _reslut += x;
            Console.WriteLine("the x is {0},result is {1}.", x.ToString(),_reslut.ToString());
        }

        #endregion
    }
}
